<template>
  <div class="info">
    <div class="info-header">
      <img src="../../../static/images/person/head.png" alt="">
      <div class="avatar">点击修改头像</div>
    </div>
    <div class="info-main">
      <div class="info-main-part">
        <span>昵称</span>
        <input type="text" placeholder="请输入昵称">
      </div>
      <div class="info-main-part">
        <span>姓名</span>
        <span>梁坚</span>
      </div>
      <div class="info-main-part">
        <div class="phone">手机号</div>
        <span>19971779971</span>
      </div>
    </div>
    <div class="info-footer">
      <button class="info-footer-btn" @click="toPersonal">确认修改</button>
    </div>

  </div>
</template>

<script>
export default {
  name: "PersonModify",
  methods:{
    toPersonal(){
      this.$router.push('/personal')
    }
  }
}
</script>

<style lang="less" scoped>
.info {
  .info-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-bottom: 10px solid #f5f5f6;

    img {
      width: 84px;
      height: 87px;
      border: 1px solid #F5F5F6;
      margin: 64px 145px 15px 145px;
    }

    .avatar {
      width: 84px;
      height: 28px;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #333336;
      line-height: 28px;
      margin-bottom: 16px;
    }
  }

  .info-main {
    .info-main-part {
      display: flex;
      span {
        display: block;
        width: 32px;
        height: 22px;
        margin: 16px;
        font-size: 16px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #333336;
        line-height: 22px;
      }

      input {
        margin: 16px;
        border: none;
        width: 80px;
        height: 22px;
        font-size: 16px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #B8BDC0;
        line-height: 22px;
      }
      .phone {
        width: 48px;
        height: 22px;
        margin: 16px 0 16px 16px;
        font-size: 16px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #333336;
        line-height: 22px;
      }
    }
  }

  .info-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 26px;
    margin-top: 60px;
    width: 321px;
    height: 48px;
    background: #003B74;
    border-radius: 4px;
    .info-footer-btn{
      text-align: center;
      width: 89px;
      height: 22px;
      font-size: 16px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #FFFFFF;
      line-height: 22px;
      background: #003B74;
      border: none;
    }
  }
}
</style>
